<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:composition template="/template.jsp">

	<ui:define name="titulo"> Principal </ui:define>
	<ui:define name="corpo">
		<rich:panel header="Sistema de Gerenciamento de Documentos" > 
		<h:form id="frm">
			<h:panelGrid columns="2" width="200">
				
				<h:commandLink action="#{usuarioController.listar}">
				<h:graphicImage id="usuarioImage" value="/img/user.png"></h:graphicImage>
				<br/>
					<h:outputText value="#{msgs['button.usuario']}"/>
				</h:commandLink>
				
				<h:commandLink action="#{documentoController.listar}">
					<h:graphicImage id="documentoImage" value="/img/document.png"></h:graphicImage>
					<br/>
					<h:outputText value="#{msgs['button.documento']}"/>
				</h:commandLink>
			</h:panelGrid>
			
		</h:form>
		</rich:panel>
	</ui:define>
		
</ui:composition>
</html>